/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.targeter.rulesengine.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    jsalaice
 * @generated
 */
public class modelsSoap implements Serializable {
	public static modelsSoap toSoapModel(models model) {
		modelsSoap soapModel = new modelsSoap();

		soapModel.set_id(model.get_id());
		soapModel.setModel(model.getModel());
		soapModel.setActive(model.getActive());

		return soapModel;
	}

	public static modelsSoap[] toSoapModels(models[] models) {
		modelsSoap[] soapModels = new modelsSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static modelsSoap[][] toSoapModels(models[][] models) {
		modelsSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new modelsSoap[models.length][models[0].length];
		}
		else {
			soapModels = new modelsSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static modelsSoap[] toSoapModels(List<models> models) {
		List<modelsSoap> soapModels = new ArrayList<modelsSoap>(models.size());

		for (models model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new modelsSoap[soapModels.size()]);
	}

	public modelsSoap() {
	}

	public long getPrimaryKey() {
		return __id;
	}

	public void setPrimaryKey(long pk) {
		set_id(pk);
	}

	public long get_id() {
		return __id;
	}

	public void set_id(long _id) {
		__id = _id;
	}

	public String getModel() {
		return _model;
	}

	public void setModel(String model) {
		_model = model;
	}

	public boolean getActive() {
		return _active;
	}

	public boolean isActive() {
		return _active;
	}

	public void setActive(boolean active) {
		_active = active;
	}

	private long __id;
	private String _model;
	private boolean _active;
}